package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 页面元素
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpView extends Model<JbdpView> {

    private static final long serialVersionUID=1L;

    /**
     * 元素ID
     */
    @TableId("VIEW_ID")
    private String viewId;

    /**
     * 元素代码
     */
    @TableField("VIEW_CODE")
    private String viewCode;

    /**
     * 元素名称
     */
    @TableField("VIEW_NAME")
    private String viewName;


    public String getViewId() {
        return viewId;
    }

    public JbdpView setViewId(String viewId) {
        this.viewId = viewId;
        return this;
    }

    public String getViewCode() {
        return viewCode;
    }

    public JbdpView setViewCode(String viewCode) {
        this.viewCode = viewCode;
        return this;
    }

    public String getViewName() {
        return viewName;
    }

    public JbdpView setViewName(String viewName) {
        this.viewName = viewName;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.viewId;
    }

    @Override
    public String toString() {
        return "JbdpView{" +
        "viewId=" + viewId +
        ", viewCode=" + viewCode +
        ", viewName=" + viewName +
        "}";
    }
}
